package com.insurance.service;

import java.util.List;
import com.insurance.bean.Product;
import com.insurance.util.PageBean;


public interface ProductService {

	public void save(Product product);

	public void update(Product product);

	public Product getProduct(Integer productid);

	public void delete(Integer productid);

	public List<Product> getProducts();
	
	public List<Product> getProductsByType(Integer type);
	
	public List<Product> getProductsByCompany(String companyName);
	
	public List<Product> getProductsByPage(PageBean page);
	
	public int getTotalCount();
	
	public List<Product> searchProduct(Product product);
	
	public List<Product> getProductsByAgent(Integer agentId);
	
	public List<Product> getProductsTop10();
	
	public List<Product> getProductsTop5();
	
}